import request from '../utils/request';

// 查询日志列表
export function listOperLog(query) {
    return request({
        url: "/log/list",
        method: 'get',
        params: query
    })
}

// 查询日志详细
export function getOperLog(operId) {
    return request({
        url: '/log/' + operId,
        method: 'get'
    })
}

// 删除日志
export function delOperLog(operId) {
    return request({
        url: '/log/delete/' + operId,
        method: 'delete'
    })
}

// 批量删除日志
export function batchDelOperLog(operIds) {
    return request({
        url: '/log/batchDelete/' + operIds,
        method: 'delete'
    })
}
// 删除日志
export function clearOperLog() {
    return request({
        url: '/log/clean',
        method: 'delete'
    })
}

// 导出日志
export function exportOperLog() {
    return request({
        url: '/log/export',
        method: 'get',
        procgress: true,
        responseType: 'blob'
    })
}